var Entity = Class.extend({
	image: null,
	type: null,
	removed: false,
	pos: {x: 0, y: 0},
	posFinal: {x:0, y: 0},
	tamanho: {w:0, h:0},
	vel: {x: 0, y: 0},
	update: function() {
		this.pos.x += this.vel.x;
		this.pos.y += this.vel.y;
		this.posFinal.x = this.pos.x + this.tamanho.w;
		this.posFinal.y = this.pos.y + this.tamanho.h;
	},
	revert: function() {
		this.pos.x -= this.vel.x;
		this.pos.y -= this.vel.y;
		this.posFinal.x = this.pos.x + this.tamanho.w;
		this.posFinal.y = this.pos.y + this.tamanho.h;
	},
	collided: function (entity) {
		console.log(entity.type);
	},
	updateBallLife: function (htmlBalls, htmlLife) {
		document.getElementById('textBallLifeInfo').innerHTML = "<p>Bolas recuperadas: "+htmlBalls+"</p><p>Tentativas: "+htmlLife+"</p>";
	}
});